﻿<div class="page-body">
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">用户列表</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <div class="table-toolbar">
                        <form method="get" action="{:U('index')}" class="form-inline" role="form">
                            <div class="form-group">
                                <span class="input-icon" style="width: 200px;">
                                    <input type="text" class="form-control input-sm" placeholder="昵称"
                                           name="keywords" value="{$Think.get.keywords}">
                                    <i class="glyphicon glyphicon-search blue"></i>
                                </span>

                                <button type="submit" class="btn btn-info">搜索</button>

                                <a href="{:U('export')}" class="btn btn-danger">用户导出</a>
                            </div>
                        </form>
                    </div>

                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>
                                会员卡
                            </th>
                            <th>
                                昵称头像
                            </th>
                            <th>
                                ID
                            </th>
                            <th>地址</th>
                            <th>操作</th>
                            <th></th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="data" id="vo">
                            <tr>
                                <!--<td>{$vo.user_id}</td>-->
                                <td>
                                    <notempty name="vo.card">
                                        <a href="{:U('Card/index',['card_id'=>$vo['card']['card_id']])}">{$vo.card.card_id}</a>
                                    </notempty>
                                </td>
                                <td>
                                    <a class="show_headimg">显示头像<img src="{$vo.headimgurl}" height="100"></a><br>
                                    {$vo.nickname}
                                </td>
                                <td>
                                    <notempty name="vo.card">
                                        <a href="{:U('Card/index',['card_id'=>$vo['card']['card_id']])}">卡号：{$vo.card.card_id}</a><br>
                                        手机号：{$vo.card.mobile}<br>
                                        到期时间：{$vo.card.expire_time}
                                    </notempty>
                                </td>
                                <td>{$vo['address']['address']}</td>
                                <td><a href="{:U('User/address',['user_id'=>$vo['user_id']])}">修改地址</a></td>
                                <td>
                                    <if condition="vo.expire_time">

                                    </if>
                                    <!--<a class="btn btn-success btn-xs"-->
                                       <!--href="{:U('edit',array('activity_id'=>$v['activity_id']))}">-->
                                        <!--<i class="fa fa-edit"></i> 编辑-->
                                    <!--</a>-->
                                </td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>
                    {$page}
                    <form class="form-inline" method="post">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">设置页码</div>
                                <input class="form-control" type="text" placeholder="" name="p" value="{$Think.get.p}" style="width: 60px;">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>